package cn.neusoft.feignClients.fallback;

import cn.neusoft.exception.AppExceptionCodeMsg;
import cn.neusoft.feignClients.CommodityFeignClient;
import cn.neusoft.vo.ResultBean;
import org.springframework.stereotype.Component;

/**
 * @Description:熔断服务的返回内容
 * @Author:邢旭升
 * @Date:2023/7/4 上午 11:22
 **/
@Component
public class CommodityFeignClientFallback implements CommodityFeignClient {
    @Override
    public ResultBean getById(String id) {

        return ResultBean.error(AppExceptionCodeMsg.SERVICE_ERROR);
    }
}
